package kr.hkit.powerjava.chapter23;

public class MyThread extends Thread{
//반드시 run()오버라이드 한다
	@Override
	public void run() {
		for(int i=100;i>0;i--){
			System.out.print(i+" ");
			try {
				Thread.sleep(500);//0.5초 쉼
			} catch (InterruptedException e) {
			}
		}
		System.out.println("MyThread종료");
	}
	
}
